# Проекту конечно же нужно имя
project(mutester_plugin_image)
 
# Поиск требуемых библиотек
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   ../../plasma_applet_mutester/
   )
 
# Тут мы добавляем наш исходный код
set(mutester_plugin_image_SRCS 
	mutester_plugin_image.cpp
        dcfg.cpp
        drule.cpp
)

kde4_add_ui_files(mutester_plugin_image_SRCS
        dcfg.ui
        drule.ui
)

# Убедитесь, что все пути к файлам верны
kde4_add_plugin(mutester_plugin_image ${mutester_plugin_image_SRCS})
target_link_libraries(mutester_plugin_image
                      ${KDE4_KDEUI_LIBS})
 
if(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
install(TARGETS mutester_plugin_image DESTINATION /usr/lib/mutester_plugins/)
endif()
 
#install(FILES plasma_applet_mtester.desktop
#        DESTINATION ${SERVICES_INSTALL_DIR})
